<template>
    <div id="qujing">
        用户名:<input type="text" v-model="username"><br>
        密码:<input type="password" v-model="password"><br>
        <input type="button" value="登录" @click="login()">
    </div>
</template>
<script>
import {login_lalala}  from './axios_api/api.js'
export default {
    name:"qujing",
    data(){
        return{
           username:"",
           password:"",
        }
    },methods:{
        login(){
            var data={
                username:this.username,
                password:this.password,
            }
            login_lalala(data)
            .then(res=>{
                console.log(res)
                 this.$router.push({path:"/zhanshi"})
            })
        }
    }
    
}
</script>
<style>

</style>